import { BaseModel, BasePage } from '../base-model'
import { menu } from '@/entity/system/menu'

/**
 * 角色
 */
export interface Role extends BaseModel {
  name?: string
  sysRoleMenus?: Array<RoleMenu> | Array<string>
  menu?: Array<menu>
}

export interface RoleMenu extends BaseModel {
  menuId?: string
  roleId?: string
}

export interface RoleQuery extends BasePage {
  fkDeptId?: string
  name?: string
}
